<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        var obj = {
            name: "张阳",
            age: 18,
            like: [
                "早上跑步",
                "晚上复习",
                "人帅有腹肌"
            ]
        }

        //对象下的一组属性名，是一个数组
        // console.log(Object.keys(obj)); //['name', 'age', 'like']

        //对象下的一组属性值，是一个数组
        // console.log(Object.values(obj)); //['张阳', 18, Array(3)]


    </script>
</body>

</html>